package com.his.check.service.impl;

import com.his.check.mapper.CheckMapper;
import com.his.check.pojo.Employee;
import com.his.check.pojo.MedicalTechnology;
import com.his.check.pojo.Register;
import com.his.check.service.CheckService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service

public class CheckServiceImpl implements CheckService {
    @Resource
    CheckMapper checkMapper;

    @Override
    public ArrayList<Register> queryAllCheck() {
        return checkMapper.queryAllCheck();
    }

    @Override
    public ArrayList<Register> queryCheckByConditions(Register register) {
        return checkMapper.queryCheckByConditions(register);
    }

    @Override
    public ArrayList<MedicalTechnology> queryMedicalTechnonlgyByConditions(Integer id) {
        return checkMapper.queryMedicalTechnologyByConditions(id);
    }

    @Override
    public ArrayList<Employee> queryEmployeeByConditions(Employee employee) {
        return checkMapper.queryEmployeeByConditions(employee);
    }

    @Override
    public Register selectById(Integer id) {
        return checkMapper.selectById(id);
    }
}
